package cn.edu.scau.cmi.yangmupei.singleton;

import cn.edu.scau.cmi.yangmupei.singleton.Marshal;

public class Marshal {
	private static Marshal instance;
	public String getName() {
		return name;  
	}
	private static int num = 0;
	private String name;
	private Marshal(String name) {
		this.name = name;
	}
	
	
	
	public static Marshal getInstance(String name) {
		if(num<10) {
			instance = new Marshal(name);
			return instance;
		}
		return instance;
	}
}
